export class ClassPagination{
    //当前页数
    currentPage:number = 1
    //一页多少行
    pageSize:number = 20
    //总数
    total:number = 0
}
/**
 * 会员对象
 */
export class ClassUser{
    avatarUrl:string = ''
    birthday:number | undefined = undefined
    gender:number | undefined = undefined
    gmtCreate:number | undefined = undefined
    gmtLastLogin:number | undefined = undefined
    gmtUpdate:number | undefined = undefined
    id:number | undefined = undefined
    lastLoginIp:string = ''
    level:number | undefined = undefined
    loginType:number | undefined = undefined
    openId:string = ''
    phone:string = ''
    status:number | undefined = undefined
    nickname?:string = ''
}
/**
 * 优惠券对象
 */
export class ClassCoupon{
    id:number | undefined = undefined
    days:number | undefined
    description:string=''
    categoryTitle:string = ''
    categoryId:number |undefined =undefined
    discount:number  | undefined = undefined
    gmtEnd:number  | undefined
    gmtStart:number | undefined
    limit:number  | undefined = undefined
    min:number  | undefined = undefined
    status:number | undefined = undefined
    surplus:number | undefined = undefined
    title:string=''
    total:number  | undefined = undefined
    type:number | undefined = undefined
}
/**
 * 枚举用于对话框
 */
export enum EnumDialogTitle{
    edit = '编辑',
    create = '创建',
    view = '查看'
}
/**
 * 广告对象
 */
export class ClassAdvice{
    color:string = ''
    gmtCreate:number | undefined = undefined
    gmtUpdate:number | undefined = undefined
    id:number | undefined = undefined
    imgUrl:string = ''
    status:number = 0
    title:string = ''
    type:number  | undefined = undefined
    unionType:number | undefined
    unionValue:number | undefined
}
export class ClassCategory{
    childrenList:Array<ClassCategory> = []
    fullName:string = ''
    gmtCreate:number | undefined = undefined
    gmtUpdate:number | undefined = undefined
    id:number | undefined = undefined
    level:number | undefined = undefined
    parentId:number | undefined = undefined
    picUrl?:string
    secondLevelId:number | undefined = undefined
    title:string | undefined = undefined
}
export class ClassGroupShop{
    automaticRefund:number | undefined = undefined
    buyerNum:number | undefined = undefined
    categoryId:number | undefined = undefined
    description:string | undefined = undefined
    detail:string | undefined = undefined
    freightTemplateId:number | undefined = undefined
    gmtCreate:number | undefined = undefined
    gmtEnd:number | undefined = undefined
    gmtStart:number | undefined = undefined
    gmtUpdate:number | undefined = undefined
    groupShopSkuDTOList:Array<TypeGroupShopSkuDTO> = []
    id:number | undefined = undefined
    img:string | undefined = undefined
    maxPrice:number | undefined = undefined
    minNum:number | undefined = undefined
    minPrice:number | undefined = undefined
    originalPrice:number | undefined = undefined
    price:number | undefined = undefined
    sales:number | undefined = undefined
    spuId:number | undefined = undefined
    status:number | undefined = undefined
    title:string | undefined = ''
    unit:string | undefined = ''
    vipPrice:number | undefined = undefined
}
export class ClassGroupShopForm{
    spuId: undefined | number = undefined
    gmtStart: undefined | number = undefined
    gmtEnd: undefined | number = undefined
    minNum: undefined | number = 1
    automaticRefund: undefined | number = 0
    groupShopSkuList: TypeGroupShopSkuDTO[] = []
    mode: undefined | number = 1

}
/**
 * 商品类别
 */
export class ClassProduct{
    activityId:number | undefined = undefined
    activityType:number | undefined = undefined
    description:string | undefined = ''
    freightTemplateId:number | undefined = undefined
    gmtActivityEnd:number | undefined = undefined
    gmtActivityStart:number | undefined = undefined
    gmtCreate:number | undefined = undefined
    gmtUpdate:number | undefined = undefined
    id:number | undefined = undefined
    img:string | undefined = ''
    originalPrice:number | undefined = undefined
    price:number | undefined = undefined
    sales:number | undefined = 0
    skuList:Array<TypeGroupShopSkuDTO> = []
    status:number | undefined = 0
    title:string | undefined = ''
    unit:string = ''
    vipPrice:number | undefined = undefined
    categoryId:number|undefined
}

export class ClassSku{
    barCode:string | undefined
    gmtCreate:number | undefined
    gmtUpdate: number | undefined
    id:number | undefined
    img:string |undefined
    originalPrice:number = 0
    price: number = 0
    specification:string | undefined
    spuId:number | undefined
    stock:number | undefined
    title:string | undefined
    vipPrice:number = 0
    weight:number | undefined
}
export class ClassTags{
    path:string = ''
    name:string = ""
    title:string = ''
    constructor(path:string,name:string,title:string){
        this.path = path
        this.name = name
        this.title = title
    }
}